RewardThread multi catch custom exceptions
Correct typo and more exceptions handling in plugin class
Missing exception in plugin class
Make database initialisation as a function