window.close() is blocked by modern browsers for tabs not opened via
window.open(). The success page's close button and auto-close timer
silently fail as a result.
- Add tryClose() that attempts window.close() and falls back to
showing "You can close this tab manually" after 500ms
- Remove ineffective auto-close scripts from error pages