Refocus window to previous window when closing.