Fix serialport.close(callback) on success, small jshint cleanup