Exception handling in seq()