added clean up and entrypoint at gearman-server