Unreachable

Removed a few bits of error handling code that were getting optimised out and removed a few unneeded breaks. Made unreachable code an error.