catch errors while booking