Re-throwing exception properly