Cleanup of the Deployment class