Shutdown Timer Mac App

My MacBook Pro was not shutting down properly, and it took a fair amount of time to locate the cause of the problem. Google search results for “Mac OS X hangs on shutdown” were abundant, but none of the suggested resolutions fixed the problem my system was experiencing. I eventually found the cause of the problem, and I feel it’s worth sharing here. Hopefully the information in this article with be helpful to others.

The Problem

  1. The app will put a picture of a stylish-looking alarm clock on your Mac which you can use to set your alarms. To set an alarm, choose the time and date and then click the blue round button in the bottom-left corner of the clock. You can change what your alarm will sound like by tapping Sound in the menu.
  2. Download the latest version of iWillQuit for Mac - Sleep/restart/shutdown timer. Read 3 user reviews of iWillQuit on MacUpdate.

If an app on your Mac stops responding and you can't quit the app normally, use Force Quit to close the app. To quit (close) a Mac app normally, choose Quit from the app's menu in the menu bar, or press Command (⌘)-Q.

When I would shutdown or restart my Mac, the system would hang with the spinning grey beach ball on the display. Eventually I would have to use the power button to power off my Mac. This was happening under both Snow Leopard and Lion.

Troubleshooting the Problem

After months of dealing with this problem, it because apparent that the problem was related Parallels Desktop 7. I came to this conclusion because the problem only occurred after running a Parallels virtual machine for a few hours. As a quick resolution I uninstalled Parallels, installed VMware Fusion 4, and converted my Parallels virtual machines for use with Fusion. Everything was working great under Fusion 4—the shutdown problem was resolved, and I was happy with the performance of Fusion. However, after using Fusion for a while, I started noticing strange behavior with my CentOS virtual machines. For example, the Vim editor would hang occasionally, and at one point my ethernet bridge to the local system was going up and down repeatedly. The problem with the Ethernet connectivity and rumors of often corrupted Fusion virtual machines was enough to convince me to uninstall Fusion and switch back to Parallels. Of course after switching back to Parallels, my shutdown problems came back to haunt me.

As a developer who often works in a virtual machine environment, I don’t want to waste time troubleshooting an unstable virtual environment (Fusion). I also can’t risk losing hours of work. Parallels has always been a very stable solution, and I’ve never experienced any problems with any of my virtual machines.

The Solution

App

I eventually found that Kaspersky Anti-Virus 2011 was the cause of my problems. When I removed Kaspersky from my system by running the Kaspersky uninstall script, the shutdown problem was resolved. Once I was confident the shutdown problem was completely resolved, I tried reinstalling Kaspersky, and found the the shutdown problem eventually reappeared. So if you’re experiencing shutdown problems on a Mac that’s running Parallels and Kaspersky, uninstall Kaspersky!

If you uninstalled Kaspersky and you’re still experiencing shutdown problems, you should confirm that Kaspersky is completely uninstalled. Try running the following kextstat command to see if Kaspersky is still being loaded as a kernel extension.

If after running the above command you see any references to Kaspersky in the output, you probably didn’t use the Kaspersky uninstall script. You can access this uninstall script by running the Kaspersky installation dmg file—just select the option “Kaspersky Anti-Virus 2011 Uninstaller.app” instead of “Kaspersky Anti-Virus 2011.mpkg.”

Other Possible Solutions

If uninstalling Kaspersky Anti-Virus 2011 didn’t resolve your shutdown problem, try some of the following troubleshooting steps:

  • Try stopping the Kaspersky services “Kaspersky” and “kav,” and deleting the file “/.com_kaspersky_iswift_journal” prior to shutting down or restarting your system.
  • Try removing items from your login items. One way to eliminate anything in your login items is to document what applications you have listed in your startup items, and remove all of them (System Preferences > Users & Groups > Login Items). If your shutdown problem persists, add all of the login items back. Another (faster) option would be to move or rename “~/Library/Preferences/com.apple.loginitems.plist” (I’ve never done it this way, but it should work).
  • Try manually stopping various services before you shutdown or reboot your system. Use the Activity Monitor to view and stop the various services, or the appropriate commands in a terminal window. I recommend documenting which services you manually stopped so you can keep track of which ones you tried.
  • For a few months while I was experiencing these shutdown problems, I ran a custom shell script that would kill all of the services/processes that I suspected were causing the problem. This solution worked fairly well, but I grew tired of having to run the script every time I wanted to shutdown my system. An example kill script is shown below. It uses “ps aux” to pull a listing of processes, pipes that into “grep” to look for the suspected process by name, pipes that to “cut” to get the Process ID (PID), and then pipes that into “xargs” to pass each string to the utility “kill” to terminate the process.

If you’re like me and prefer to run Parallels Desktop7 and Kaspersky Anti-Virus on the same system, you can make the process of running this script a bit easier by creating an ApplsScript file that calls it. You can then copy the AppleScript file to the /Library/Scripts directory, and show the script icon in the top menu bar to have quick access to the script.

Example of running the shell script “cleanshutdown” from AppleScript

Recommended Anti-Virus for Mac

If you prefer to continue using an anti-virus product on your Mac (I do), I highly recommend VirusBarrier X6 by Intego. VirusBarrier X6 has a very small memory footprint and includes tons of options and additional utilities, some of which will will appeal to security professionals who like to use traceroute (including a mapping function), advanced firewall options (similar to fwbuilder for iptables), and traffic analysis tools.

I switched to VirusBarrier X6 a couple of weeks ago, and I haven’t had one shutdown problem! The problem is solved!

Timer is a complete and professional stopwatch, alarm clock, timer and clock utility for Mac. It has an easy-to-use and very intuitive interface with clear tab-based browsing thru stopwatch, timer, alarm clock and clock areas. Timer is free to download and you can freely use it as long as you wish. There is also a Pro version which includes some additional features as Full-Screen Mode, Iconized Windows, Run AppleScript Files, Launch Web Addresses, Send Email, Sleep Computer and other programmable actions.

Do you want to manage work time and breaks in the right way? Try Time Tracking for Mac.

Accurate measurement

When accurate measurement is essential you can rely on Timer.

When accurate measurement is essential you can rely on Timer, in addition to accuracy, you will find a lot of useful features: the stopwatch lets you check elapsed time using the Lap property; the timer can be optionally repeated so that you can specify an action occurring after a specific amount of time or an action that repeat every specific amount of time; the alarm clock allows you to choose between the 12-hour format or the 24-hour format and optionally can show you the remaining time; the clock is a convenient watch with large digits with, optionally, the indication of the current date.

Programmable actions

Play alarms with your favorite sound, display a message defined by you, speak a message…

Programmable actions include play alarms with your favorite sound, display a message defined by you, speak a message, announce the time, and a lot of more actions available as Pro features as: play iTunes files or iTunes playlists and stop iTunes; sleep, restart, shut down the computer; launch and quit an application; open a file; run an AppleScript file script; launch a web address and send an email with custom text and optional tags as current local time, running processes (visible or invisible), current application log. The included default actions are: play alarms with your favorite sound, display a specific message, speak a specific message and announce the time.

Pro features

Timer is free to use but there is also a Pro version which includes some additional features.

Shutdown Timer Mac App Setup

Timer is free to download and you can freely use it as long as you wish, although some users may be interested in buying the Pro version which includes some additional features: full-screen mode, iconized windows, open an unlimited number of windows, play an iTunes song, play an iTunes playlist, stop iTunes, sleep the computer, log out user, restart the computer, shut down the computer, launch an application, quit an application, open a file, run an AppleScript file, launch a web address and send emails. To get all the additional features Buy Timer Pro.

Shutdown Timer Mac App Installer

Many reasons to use Timer

Simple to use but powerful in functionality.

  • Professional stopwatch, alarm clock, timer and clock utility for Mac.
  • Easy-to-use and intuitive interface with clear tab-based browsing.
  • Accurate measurement with tenths of a second.
  • Stopwatch with elapsed time.
  • Repeating timer to have an action that repeat every specific amount of time.
  • Choose between the 12-hour format or the 24-hour format for alarm.
  • Programmable actions as play alarms, display a message, speak a message, announce the time.
  • Optional Pro features as Full-Screen Mode, Iconized Windows and Unlimited Windows.
  • Optional Pro actions as Run AppleScript Files, Launch Web Addresses and Send Emails and so on.

Do you want to manage work time and breaks in the right way? Try Breaks for Mac.