Catch timeouts in form login plugin. fix #2700