Refactor tickets

rescue can be used without begin, as it will catch exception anyway