cleaning up security service