Thank you for your post. We've not encountered any previous reports of this kind of behavior when using this sample code.
Have you checked to ensure that this issue never occurs if the OpenAllDatabases is not applied?
What kind of code do you have applied to the OnLoad or OnOpen event? Could there be a conflict occurring within one of those events?