catch all exceptions so no crash will be shown up