Fixed a race condition in shutdown process (decreasing the queueSize to 0 although we still have work to do). Changed receiver for resent messages to self() in StorageProcessor.