Replace defaults in switches with returns at ends of functions to avoid 'function ends without a return statement' errors when installing binary.