Added Workrave close. Added failover shutdown

Also made Firefox close more explicit for safety and stability.