SERVER-SHUTDOWN: Adding exit functionality