Add locking so script will not run at the same time
Fix exit
Merge pull request #4 from mattt416/add_locking

Add locking to prevent multiple runs at same time