Add the return value of the open method to the Exception so it's possible do debug what happened.