Handle shutdowns niclely in ruby 2.1.2
Merge pull request #25 from joshua-rutherford/handle_shutdown_in_2.1.2

Handle shutdowns niclely in ruby 2.1.2