Fixed the error with catching RemoteException

@Smuldr could you QA?