Increase window close timeout length

This increases the window close timeout length (as per #69). As a bonus it also fixes a little bug where hidden form fields can't be required.
Might want to change the comment as well :)