Fix signal handling to exit properly & use pidfile
Added timeouts to memcached