Fixed parameter typo.
Renamed shutdown functions and seperated the database-drop and process-kill shutdown functions.