Catch and re-throw exception on command execution