check socket FDs before closing them...wouldnt want to close stdin by accident
Merge branch 'plugins' of github.com:opentechinstitute/commotiond into plugins