fixed bug where exception is not caught correctly. Also aborting from client side is printed from server side