Added support for Closures and PHP Logging

Added the ability to allow closures as workers.
Added the ability to log php errors in the log output.
Fixed a few issues that caused the manager to die or not work as expected.