Prevent loop_respond() function from running if disconnecting
Merge pull request #377 from smfreegard/master

Prevent loop_respond() function from running if disconnecting