move up call pcntl_signal_dispatch above error logging to prevent raising an error on term signal
Merge pull request #35 from stratiator/master

move up call pcntl_signal_dispatch above error logging to prevent raising an error on term signal