Remove .pid and .sock files when stopping the agent

These files shouldn't be there if the agent is stopped correctly, but when an OpenShift app is put in the "idle" state, they remain there even though the agent is not running...