close form after the user call defaultHandler