Added better signal handeling and cancel handling of local executions