By default in Dynamics GP, if you type your password wrong 3 times GP closes. This setting can be controlled in the Dex.ini file.
The setting is:
SQLNumLoginTries = number
The default is 3, setting this to –1 allows an unlimited number of tries. This doesn’t change any SQL based lockout parameters, it simply keeps GP from closing after 3 tries.