Implement delete agent function
Small bug fix
Cleanup on restart servlet