Cleanup of wait form and browser form