Handling cleanup for OS X