Release input when controller is disconnected

This commit fixes #26.