Fixed bug in the transport, added error event