Fixed the stack-trace in case of a remote exception being thrown.