As long as you understand you can't catch a client-side browser close (body unload) without javascript.