Added signal handling to queue worker for clean shutdown.

Based on work of Eric Gerlach:

https://github.com/egerlach/cakephp_queue/commit/011d33457fbb655c981d1a1f0eab196abf865f39
Minor cs fix
Improved variable names