exit function works on crm.rb