Update gitignore
Add support for spawn_cmd
Exception handling