Added createCustomMessage
Fixed some bugs in synchronous execution that would cause the server to hang if an exception was raised