Catch more exceptions in stream loader