Return False when exception occurs in context manager, fixes #166