Replace error() with custom exception (now beeps and waits for more input)