Cleaned up try statements and fixed killswitch