Update play.lua

* Change pcall() to xpcall()
* Implement the own error handler inside the xpcall()