[FIX] Fixed incorrect exception type on catch