Prevent apns4erl from crashing when disconencted from apns servers. Add local message queueing mechanism