They have errorCode for unrecoverable errors and it will not catch that. It is ok here to catch other things. VM related errors will not be catched with this.