Sends a JSON message which has the success field set to zero and the specified message in the message field. If $message is an Exception object, the message will be extracted and if on the test server, a stacktrace is included as well. This method halts execution