Close modal between failed login tests.