Add error handling and emission on no connection to module

You probably want to set this back to `false`.