try catch crypto require