proper catch of errors during open