remove script safely.
Merge pull request #3 from yields/master

cleanup() breaks.