Cleaned up the starting and stopping of the webapp during deploy