Is there a way to auto-close the results window when the login script finishes?

I couldn't find a command to put at the end to get it to close, the only thing I could find was on the client side to set the scripts to auto-close, but I would like to do it on the server side rather than the client side.