Exception handling and don't kill everything