The backtrace that pops when rails reloads in dev environment is:
activesupport-4.0.1/lib/active_support/dependencies.rb:446:in `load_missing_constant': A copy of Api::NotificationController has been removed from the module tree but is still active! (ArgumentError)
from activesupport-4.0.1/lib/active_support/dependencies.rb:184:in `const_missing'
from app/app/controllers/api/notification_controller.rb:28:in `block (2 levels) in flow'
from tubesock-0.2.2/lib/tubesock.rb:71:in `call'
from tubesock-0.2.2/lib/tubesock.rb:71:in `each'
fromtubesock-0.2.2/lib/tubesock.rb:71:in `close'
from tubesock-0.2.2/lib/tubesock.rb:66:in `block in listen'
How can I gracefully stop tubesock when rails reloads? Any pointer?