Better exception handling/flashing