Fix a bug that server process is died on engine connection error

"error" message is special in EventEmitter. If there is no handler
for "error" message, node.js is aborted.

This change adds "error" message handler. It returns an error response
to clients.