Catch exceptions raised by valid? call