Added exception handling for weird errors and strange rpc responses